<?php

declare(strict_types=1);

namespace App\Controller\Api;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;
use App\Model\CommodityModel\Classifyinfo;

/**
 * @Controller(prefix="/CommodityClassInfo")
 * @author Administrator
 */
class CommodityClassInfoController extends AbstractController
{ 
    /**
     * @RequestMapping(path="QueryClassList", methods="post")
     * @return string[]
     */
    public function queryClassList(RequestInterface $request)
    {
        return Classifyinfo::instance()->queryClassList($request->getParsedBody());
    }
    
    /**
     * @RequestMapping(path="QueryClassInfo", methods="post")
     * @return string[]
     */
    public function queryClassInfo(RequestInterface $request)
    {
        return Classifyinfo::instance()->queryClassInfo($request->getParsedBody());
    }
}